﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;

using UnityEngine;
using System.ComponentModel;


public class LoadManager
{
    public LoadManager()
    {
        
    }

    public void LoadAsset(string path)
    {
        var req = AssetBundle.LoadFromFile(path);
    }

    public IEnumerator LoadAsstAsyn(String path,Action<UnityEngine.AsyncOperation> act=null)
    {
        var req = AssetBundle.LoadFromFileAsync(path);
        req.completed += act;
        while(!req.isDone)
        {
            yield return null;
        }
    }
}